package com.rightsidetech.system.service;

import com.github.pagehelper.PageInfo;
import com.rightsidetech.commom.service.IService;
import com.rightsidetech.system.dtos.request.SysUserAddReq;
import com.rightsidetech.system.dtos.request.SysUserReq;
import com.rightsidetech.system.dtos.request.SysUserUpdateReq;
import com.rightsidetech.system.dtos.request.SysUserUpdateStatusReq;
import com.rightsidetech.system.dtos.response.SysUserResp;
import com.rightsidetech.commom.base.DelReq;
import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.system.entity.SysUserLoginInfo;

/**
 * @Author: yhr
 * @Date: 2021-10-19 14:14
 */
public interface SysUserService extends IService<SysUserResp,Long> {
    ResponseData saveSyaAccount(SysUserAddReq sysUserAddReq, Long loginInfoId) throws Exception;

    ResponseData updateSysAccount(SysUserUpdateReq sysUserUpdateReq,Long loginInfoId) throws Exception;

    ResponseData deleteSysUserInfo(DelReq delReq);

    ResponseData<PageInfo<SysUserResp>> pageUserInfo(SysUserReq sysUserReq,Long loginInfoId) throws Exception;

    ResponseData updateStatus(SysUserUpdateStatusReq sysUserUpdateStatusReq);

    ResponseData selectNameList(Long areaId);

    Long sysUsercheckToken(String token);

    SysUserLoginInfo selectUserById(Long loginId);
}
